//--------------------------------------------------------------------------------
// This file is a portion of the D2D1Renderer.  It is distributed
// under the MIT License, available in the root of this distribution and 
// at the following URL:
//
// http://www.opensource.org/licenses/mit-license.php
//
// Copyright (c) Mirco Timmermann
//
//--------------------------------------------------------------------------------
#pragma once

#include "..\DisplayObject.h"
#include "..\..\..\Rendering\canvas\Image.h"

class D2D1Renderer;


namespace D2 {

class Bitmap : public DisplayObject {

public:
	Bitmap(std::wstring filename);
	~Bitmap(void);

	virtual bool Draw(Direct2DContext* ctx, D2D1::Matrix3x2F* mtx = 0);

	void ScaleByDimension(float size);

private:
	Image* _image;

public:
	bool _showBorder;

};

}